package beautiful.butterfly.drds.data_exchange.plugin;


import beautiful.butterfly.drds.data_exchange.util.Configuration;

import java.sql.SQLException;

public abstract class AbstractPlugin implements Plugin
{
    //作业的config
    private Configuration jobConfiguration;

    //插件本身的plugin
    private Configuration pluginConfiguration;

    // 修改为对端的作业configuration
    private Configuration peerJobConfiguration;

    private String peerPluginName;


    public Configuration getJobConfiguration()
    {
        return jobConfiguration;
    }


    public void setJobConfiguration(Configuration jobConfiguration)
    {
        this.jobConfiguration = jobConfiguration;
    }


    public void setPeerJobConfiguration(Configuration peerJobConfiguration)
    {
        this.peerJobConfiguration = peerJobConfiguration;
    }


    public void preCheck() throws SQLException
    {
    }

    public void prepare() throws SQLException
    {
    }

    public void post() throws SQLException
    {
    }

    public void preHandler(Configuration jobConfiguration) throws SQLException
    {

    }

    public void postHandler(Configuration jobConfiguration) throws SQLException
    {

    }
}
